package com.mifengs.mall.di.module;

import com.mifengs.commonbase.di.scope.ActivityScope;
import com.mifengs.commonbase.di.scope.FragmentScope;
import com.mifengs.mall.ui.main.HomeContract;
import com.mifengs.mall.ui.main.HomePresenter;
import com.mifengs.mall.ui.main.MainContract;
import com.mifengs.mall.ui.main.MainPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by lihaoqi on 2017/11/13.
 */
@Module
public class MainModule {

    public final MainContract.View mView;

    public MainModule(MainContract.View mView) {
        this.mView = mView;
    }

    @ActivityScope
    @Provides
    public MainPresenter providePresenter() {
        return new MainPresenter(mView);
    }

}
